home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.4 Applications 1997 August / SGI IRIX 6.4 Applications 1997 August.iso / dist / mmailp.idb / usr / lib / Zmail / bin / sh-versions / mailto-hebrew.z / mailto-hebrew
Encoding:
Text File  |  1997-01-22  |  2.2 KB  |  68 lines

  1. :
  2. # Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore)
  3. # Permission to use, copy, modify, and distribute this material 
  4. # for any purpose and without fee is hereby granted, provided 
  5. # that the above copyright notice and this permission notice 
  6. # appear in all copies, and that the name of Bellcore not be 
  7. # used in advertising or publicity pertaining to this 
  8. # material without the specific, prior written permission 
  9. # of an authorized representative of Bellcore.  BELLCORE 
  10. # MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY 
  11. # OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS", 
  12. # WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
  13.  
  14. # Conversion from C shell to Bourne shell
  15. # by Bob Glickstein, Z-Code Software Corp.
  16. # Conversion Copyright (c) 1992 Z-Code Software Corp. (Z-Code)
  17. # Permission to use, copy, modify, and distribute this material
  18. # for any purpose and without fee is hereby granted, provided
  19. # that the above copyright notice and this permission notice
  20. # appear in all copies, and that the name of Z-Code Software not
  21. # be used in advertising or publicity pertaining to this
  22. # material without the specific, prior written permission
  23. # of an authorized representative of Z-Code.  Z-CODE SOFTWARE
  24. # MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY
  25. # OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS",
  26. # WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
  27.  
  28. # Brought into line with metamail 2.7 beta release Csh version
  29. #    Dave Shield    February 1994
  30.  
  31. MYFONTDIR=/this/directory/COOPER/almost/certainly/COOPER/does/not/exist
  32.  
  33. if test ! -z "${MM_CHARSET:-}"
  34. then
  35.     if test "$MM_CHARSET" = iso-8859-8
  36.     then
  37.         mailto "$@"
  38.         exit 0
  39.     fi
  40. fi
  41.  
  42. if test ! -d "$MYFONTDIR"
  43. then
  44.     echo The Hebrew font has not been installed properly on this machine.
  45.     exit 1
  46. fi
  47.  
  48. if test -z "${DISPLAY:-}"
  49. then
  50.     echo Hebrew mail may only be composed under X11 or on a Hebrew terminal.
  51.     exit 1
  52. fi
  53.  
  54. FPGREP=`xset q | grep $MYFONTDIR`
  55. if test -z "${FPGREP:-}"
  56. then
  57.     echo Adding $MYFONTDIR to your font path.
  58.     xset +fp "$MYFONTDIR"
  59. else
  60.     echo Your font path appears to be correctly set.
  61. fi
  62.  
  63. echo Running xterm to compose mail in iso-8859-8, please wait...
  64.  
  65. MM_CHARSET=iso-8859-8; export MM_CHARSET
  66. xterm -fn \*iso-8859-8 -e mailto "$@"
  67.